package com.happy.ibidding.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Ask {
    @Id
    private String id;

    private String askId;

    private String name;

    private String description;

    private double cost;

    private String company;

    private String cover;

    private String file;

    private String category;

    private long startTime;

    private long endTime;

    private String phone;

    private String detail;

    private String state;

    private long publishTime;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private Bid winBid;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private List<Bid> bidList;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private List<Comment> commentList;
}
